//
//  TGatheringDayDAL.h
//  CarSalesMS_GCX
//
//  Created by Tony on 2016/12/24.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import <Foundation/Foundation.h>
@class TGatheringDayModel;

@class TOrderInfoModel;

@interface TGatheringDayDAL : NSObject


#pragma mark - select

+ (NSArray<TGatheringDayModel *> *)loadListWithDictArr:(NSArray<NSDictionary *> *)arr;

+ (NSArray<TGatheringDayModel *> *)loadListWithOrderNo:(NSString *)orderNo;

+ (TGatheringDayModel *)loadModelWithOrderNo:(NSString *)orderNo;

+ (NSArray<TGatheringDayModel *> *)loadListWithTimeDay:(NSString *)timeDay timeBegin:(NSString *)timeBegin timeEnd:(NSString *)timeEnd;

+ (TGatheringDayModel *)loadModelWithGatheringTimeDay:(NSString *)timeDay timeBegin:(NSString *)timeBegin timeEnd:(NSString *)timeEnd;



#pragma mark - insert

+ (NSInteger)insertIntoDbWithGatheringModel:(TGatheringDayModel *)gatheringModel;


+ (NSArray<NSNumber *> *)insertIntoDbWithGatheringList:(NSArray<TGatheringDayModel *> *)gatheringList;





#pragma mark - BLL
+ (TGatheringDayModel *)getGatheringDayModelWithOrderModel:(TOrderInfoModel *)orderModel;

+ (CGFloat)getTotalDailyMoneyWithGatheringList:(NSArray<TGatheringDayModel *> *)gatheringList;










@end
